package com.yupi.springbootinit.model.dto.supportgrindingrecord;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 更新去支撑打磨记录请求
 */
@Data
public class SupportGrindingRecordUpdateRequest implements Serializable {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 记录日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate recordDate;

    /**
     * 工艺单号
     */
    private String processSheetNo;

    /**
     * 产品名称
     */
    private String productName;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", timezone = "GMT")
    private LocalDateTime startTime;

    /**
     * 来料重量(g)
     */
    private BigDecimal incomingWeight;

    /**
     * 成品重量(g)
     */
    private BigDecimal finishedWeight;

    /**
     * 支撑重量(g)
     */
    private BigDecimal supportWeight;

    /**
     * 打磨损耗(g)
     */
    private BigDecimal grindingLoss;

    /**
     * 报废数量(pcs)
     */
    private Integer scrapQuantity;

    /**
     * 报废重量(g)
     */
    private BigDecimal scrapWeight;

    /**
     * 完成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", timezone = "GMT")
    private LocalDateTime finishTime;

    /**
     * 操作人
     */
    private String operator;

    private static final long serialVersionUID = 1L;
}